package com.fishery.base.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ghost
 * @since 2021-01-15
 */
@TableName("t_supply")
@ApiModel(value="Supply对象", description="")
public class Supply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "投入品类型编号(1 渔药 2饲料)")
    private Integer type;

    @ApiModelProperty(value = "投入品名称")
    private String name;

    @ApiModelProperty(value = "投入品照片")
    private String picture;

    @ApiModelProperty(value = "投入品成分")
    private String ingredient;

    @ApiModelProperty(value = "规格(mm)")
    private BigDecimal specification;

    @ApiModelProperty(value = "生产日期")
    private Date produceDate;

    @ApiModelProperty(value = "保质期")
    private Date shelfDate;

    @ApiModelProperty(value = "检验人")
    private String inspector;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "供应商地址")
    private String supplierAddress;

    @ApiModelProperty(value = "供应商电话")
    private String supplierPhone;

    @ApiModelProperty(value = "供应商生产许可证")
    private String supplierLicense;

    @ApiModelProperty(value = "版本号（乐观锁）")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    @ApiModelProperty(value = "逻辑删除（0未删除，1删除）")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getIngredient() {
        return ingredient;
    }

    public void setIngredient(String ingredient) {
        this.ingredient = ingredient;
    }

    public BigDecimal getSpecification() {
        return specification;
    }

    public void setSpecification(BigDecimal specification) {
        this.specification = specification;
    }

    public Date getProduceDate() {
        return produceDate;
    }

    public void setProduceDate(Date produceDate) {
        this.produceDate = produceDate;
    }

    public Date getShelfDate() {
        return shelfDate;
    }

    public void setShelfDate(Date shelfDate) {
        this.shelfDate = shelfDate;
    }

    public String getInspector() {
        return inspector;
    }

    public void setInspector(String inspector) {
        this.inspector = inspector;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierAddress() {
        return supplierAddress;
    }

    public void setSupplierAddress(String supplierAddress) {
        this.supplierAddress = supplierAddress;
    }

    public String getSupplierPhone() {
        return supplierPhone;
    }

    public void setSupplierPhone(String supplierPhone) {
        this.supplierPhone = supplierPhone;
    }

    public String getSupplierLicense() {
        return supplierLicense;
    }

    public void setSupplierLicense(String supplierLicense) {
        this.supplierLicense = supplierLicense;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "Supply{" +
        "id=" + id +
        ", type=" + type +
        ", name=" + name +
        ", picture=" + picture +
        ", ingredient=" + ingredient +
        ", specification=" + specification +
        ", produceDate=" + produceDate +
        ", shelfDate=" + shelfDate +
        ", inspector=" + inspector +
        ", supplierName=" + supplierName +
        ", supplierAddress=" + supplierAddress +
        ", supplierPhone=" + supplierPhone +
        ", supplierLicense=" + supplierLicense +
        ", version=" + version +
        ", isDeleted=" + isDeleted +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
